package com.dmap.userportrait.rpc;

import com.dmap.userportrait.rpc.fallback.UserMovementRpcFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author liuying
 * @Description 用户运动信息Rpc调用
 * @Date 18:02 2018/7/2
 */
@FeignClient(name = "dmap-run-server", fallback = UserMovementRpcFallback.class)
public interface UserMovementRpc {
    @RequestMapping(value = "/rpc/dmap-run-server/v1/userPortrait/select/selectUserMovementInfo", method = RequestMethod.GET)
    String selectUserMovementInfo(@RequestParam(value = "userId") Long userId);
}
